package sctu.edu.java.year2016.team04.Liliang.day20160528.chapter7_3;

/**
 * Created by asus on 2016/5/28.
 * 根据运行的参数的个数循环打印i值的次数。
 */
import java.util.Scanner;
public class BianLiang {
    public static void main(String[] args) {
        System.out.println("请输入变量个数：");
        Scanner arr = new Scanner(System.in);
        int x = arr.nextInt();
        for (int i = 1;i <= x;i++){
            System.out.println("第"+ i+"个变量");
        }
    }
}
